<div class="col-lg-12">
    @include('admin.users.bar')
    <div class="clearfix">
        <!-- .breadcrumb -->
        <ul class="breadcrumb">
            <li><a href="{{ URL::to('admin/users') }}"><i class="fa fa-group"></i> Users</a></li>
            <li><a href="#"><i class="fa fa-plus"></i> Add User</a></li>
        </ul>
        <!-- / .breadcrumb -->
    </div>
    <section class="panel">
        {{ Form::open(array('route' => 'admin.users.store','class'=>'form-horizontal', 'data-validate'=>"parsley")) }}
        <header class="panel-heading">
            <div class="pull-left"><i class="fa fa-edit fa-lg"></i> Add User</div>
        </header>
        <div class="panel-body">
            @if ($errors->any())
                <ul class="alert alert-danger">
                    {{ implode('', $errors->all('<p>:message</p>')) }}
                </ul>
            @endif
            <div class="form-group">
                <label class="col-lg-3 control-label">First Name</label>
                <div class="col-lg-8">
                    <input type="text" class="form-control parsley-validated" data-required="true" placeholder="First Name" name="first_name" value="{{ Input::old('first_name') }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-3 control-label">Last Name</label>
                <div class="col-lg-8">
                    <input type="text" class="form-control parsley-validated" data-required="true" placeholder="Last Name" name="last_name" value="{{ Input::old('last_name') }}">
                    <div class="line line-dashed m-t-large"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-3 control-label">Email</label>
                <div class="col-lg-8">
                    <input type="text" data-type="email" data-required="true" class="bg-focus form-control parsley-validated" placeholder="test@example.com" name="email" value="{{ Input::old('email') }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-3 control-label">Password</label>
                <div class="col-lg-8">
                    <input type="password" class="bg-focus form-control" placeholder="Password" name="password" data-required="true" value="{{ Input::old('password') }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-3 control-label">Password Confirmation</label>
                <div class="col-lg-8">
                    <input type="password" class="bg-focus form-control" placeholder="Password Confirmation" name="password_confirmation" data-required="true" value="{{ Input::old('password') }}">
                </div>
            </div>
            <!--<div class="form-group">
                <label class="col-lg-3 control-label">Group</label>
                <div class="col-lg-4">
                    <select class="form-control bg-focus" name="account" data-required="true">
                        <option value="1">Editor</option>
                        <option value="0">Admin</option>
                    </select>
                </div>
            </div>-->
            <div class="form-group">
                <label class="col-lg-3 control-label">Superuser</label>
                <div class="col-lg-8">
                    <div class="checkbox">
                        <input type="checkbox" name="superuser" value="Y" @if(Input::old('superuser')=='Y') checked="checked" @endif>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-lg-9 col-lg-offset-3">
                    <button class="btn btn-white btn-primary" type="submit">Save User</button>
                    <a class="btn" href="{{ URL::to('admin/users') }}">Cancel</a>
                </div>
            </div>
        </div>
        {{ Form::close() }}
    </section>
</div>
